package org.zerta.troops.server;

import javax.swing.JTextArea;

public class ServerConsole {
	
	JTextArea console;
	
	public ServerConsole () {
		console = new JTextArea(10, 80);		
	}
	
	public JTextArea getField() {
		return console;
	}
	
	public void log(String message) {
		String now = console.getText();
		int pos = now.length();
		console.insert(message + "\n", pos);
	}

}
